import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询赛事信息列表
export function listEventInfo(query) {
  return getRequest('/eventSys/eventInfo/list', query)
}

// 查询赛事信息详细
export function getEventInfo(id) {
  return getRequest(`/eventSys/eventInfo/${id}`)
}

// 新增赛事信息
export function addEventInfo(data) {
  return postRequest('/eventSys/eventInfo', data)
}

// 修改赛事信息
export function updateEventInfo(data) {
  return postRequest('/eventSys/eventInfo', data)
}

// 删除赛事信息
export function delEventInfo(id) {
  return deleteRequest(`/eventSys/eventInfo/${id}`)
}
